﻿using Microsoft.Xna.Framework.Content;
using ZeldoEngineObjects.Maps;
using Microsoft.Xna.Framework.Graphics;
using ZeldoEngineObjects;

namespace ZeldoEngine.Game.Maps
{
    public partial class Map
    {
        public void ChargerCarte(ContentManager contentManager, MapModel m)
        {
            this.View.Charger(contentManager, m.Chipset);
            this.Model = m;
        }

        public void Dessiner(SpriteBatch spriteBatch, MapModel.Layer layer, int offsetX, int offsetY)
        {
            this.View.Dessiner(spriteBatch, Model, layer, offsetX, offsetY, EngineConsts.TILE_SIZE, EngineConsts.CHIPSET_WIDTH);
        }
    }
}
